<?php
ob_start();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <script src="../script/farmacia.js" type="text/javascript"></script>
        </head>
    <body>
        <div id="content">
            <h3 style="padding-bottom:20px">Preencha o formulário completo:</h3>
            <form action="../controller/cadastraFuncionario.php" method="post">
                <table align="center" cellpadding="2" cellspacing="2">
                    <tr>
                        <td align="left">Nome </td>
                        <td>
                            <input type="text" required name="nome" id="nomeID">
                        </td>
                    </tr>
                    <tr>
                        <td align="left">CPF</td>
                        <td>
                            
                            <input type="text" value ="" required name="cpf" id="cpfID" onkeypress="return MascaraCPF(this, event);" maxlength="14"/>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">Usuário</td>
                        <td>
                            <input type="text" required name="usuario" id="usuarioID">
                        </td>
                    </tr>
                    <tr>
                        <td align="left">Senha</td>
                        <td>
                            <input type="password" required name="senha" id="senhaID">
                        </td>
                    </tr>
                    <tr>
                        <td>Tipo de perfil</td>
                        <td align="left">
                            <select required name="perfil_id" id="tipoID">
                                <option value="" selected></option>
                                <option value="1">Gerente</option>
                                <option value="2">Funcionário</option>
                            </select>
                        </td>
                    </tr>
                    <tr><td colspan="2" align="center">
                            <input type="submit" value="Enviar">
                            <input type="reset" value="Limpar">
                        </td></tr>        
                </table>
            </form>
        </div>
    </body>         
    
</html>

<?php
$pagemaincontent = ob_get_contents();
$GLOBALS['superUser'] = 1;
ob_end_clean();
$pagetitle = "Cadastrar Funcionário";
include("master.php");
?>